var swiper = new Swiper(".mySwiper", {
        slidesPerView: 3,
        spaceBetween: 30,
        slidesPerGroup: 3,
        loop: true,
        loopFillGroupWithBlank: true,
        pagination: {
          el: ".swiper-pagination",
          clickable: true,
        },
		autoplay: {
		  delay: 3000,//1秒切换一次
		  disableOnInteraction: false,  // 鼠标点击 触摸之后，自动继续播放
		},
        navigation: {
          nextEl: ".swiper-button-next",
          prevEl: ".swiper-button-prev",
        },
      });
	  
	  
const ulsa = document.querySelector('.tab-nav ul')
    const itemss = document.querySelectorAll('.tab-content .item')
    ulsa.addEventListener('click', function (e) {
      if (e.target.tagName === 'A') {
        document.querySelector('.tab-nav .active').classList.remove('active')
        e.target.classList.add('active')
        const i = +e.target.dataset.id
        document.querySelector('.tab-content .active').classList.remove('active')
        itemss[i].classList.add('active')
      }
    })